package com.txra.txramall.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import com.txra.txramall.order.entity.OrderEntity;
import com.txra.txramall.order.service.OrderServiceApi;
import com.txra.txramall.user.service.UserService;


@Service
public class UserServiceImpl  implements UserService {
	@Autowired
    private OrderServiceApi orderServiceApi;
	
	
	@Override
	public List<OrderEntity> query(Integer userId) {
		 return orderServiceApi.listByUserId(userId);
		 
		 
		
	}


}